<?xml version="1.0" encoding="UTF-8"?>
<!--
*************************************************************************
* The contents of this file are subject to the Openbravo  Public  License
* Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
* Version 1.1  with a permitted attribution clause; you may not  use this
* file except in compliance with the License. You  may  obtain  a copy of
* the License at http://www.openbravo.com/legal/license.html 
* Software distributed under the License  is  distributed  on  an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific  language  governing  rights  and  limitations
* under the License. 
* The Original Code is Openbravo ERP. 
* The Initial Developer of the Original Code is Openbravo SL 
* All portions are Copyright (C) 2001-2006 Openbravo SL 
* All Rights Reserved. 
* Contributor(s):  ______________________________________.
************************************************************************
-->
<REPORT>
  <template file="ReportProductionCostSubreport.srpt"/>
  <PARAMETER name="param2" id="param2" default="2"/>

  <structure name="structureMaterial">

    <FIELD id="fieldLevelBlanckMaterial" attribute="width" replace="xx">levelBlanck</FIELD>
    <FIELD id="fieldLevelNameMaterial" attribute="width" replace="jj">levelName</FIELD>
    <FIELD id="fieldNameMaterial">name</FIELD>
    <FIELD id="fieldIdMaterial" attribute="onClick" replace="xx">id</FIELD>
    <FIELD id="fieldIdMaterial" attribute="onClick" replace="yy">identifier</FIELD>
    <FIELD id="fieldIdMaterial" attribute="onClick" replace="zz">levelid</FIELD>
    <FIELD id="fieldConsumedPerUnitMaterial" format="euroInform">consumedPerUnit</FIELD>
    <FIELD id="fieldCostPerUnitMaterial" format="euroInform">costPerUnit</FIELD>
    <FIELD id="fieldConsumedPerUnitStdMaterial" format="euroInform">consumedPerUnitStd</FIELD>
    <FIELD id="fieldCostPerUnitStdMaterial" format="euroInform">costPerUnitStd</FIELD>
    <FIELD id="fieldRealCostMaterial" format="euroInform">realunitcost</FIELD>
    <FIELD id="fieldStandardCostMaterial" format="euroInform">standarunitcost</FIELD>

  <FIELD id="fieldLevelId">levelid</FIELD>
  <FUNCTION id="fieldLevelMaterial" name="MODULE" arg1="fieldLevelId" arg2="param2" format="integerEdition" attribute="class" replace="1"/>
   <!--FIELD id="fieldLevelNameMaterial" attribute="class">className</FIELD>
    <FIELD id="fieldConsumedPerUnitMaterial" attribute="class">className</FIELD>
    <FIELD id="fieldCostPerUnitMaterial" attribute="class">className</FIELD>
    <FIELD id="fieldConsumedPerUnitStdMaterial" attribute="class">className</FIELD>
    <FIELD id="fieldCostPerUnitStdMaterial" attribute="class">className</FIELD>
    <FIELD id="fieldRealCostMaterial" attribute="class">className</FIELD>
    <FIELD id="fieldStandardCostMaterial" attribute="class">className</FIELD-->

    <FIELD id="buttonTreexyz" attribute="class">buttonClass</FIELD>
    <FIELD id="buttonTreexyz" attribute="id" replace="xyz">identifier</FIELD>
    <FIELD id="returnTextxyz" attribute="id" replace="xyz">identifier</FIELD>

    <!--FUNCTION id="fieldRealCostMaterial" name="MULTIPLY" arg1="fieldConsumedPerUnitMaterial" arg2="fieldCostPerUnitMaterial" format="euroInform"/>
  <FUNCTION id="fieldStandardCostMaterial" name="MULTIPLY" arg1="fieldConsumedPerUnitStdMaterial" arg2="fieldCostPerUnitStdMaterial" format="euroInform"/>

  <FUNCTION id="fieldRealConsumedMaterialAux" name="SUM" attribute="value" format="euroInform">consumedPerUnit</FUNCTION>
  <FUNCTION id="fieldRealCostMaterialAux" name="SUM" attribute="value" format="euroInform">costPerUnit</FUNCTION>
  <FUNCTION id="fieldStandardConsumedMaterialAux" name="SUM" attribute="value" format="euroInform">consumedPerUnitStd</FUNCTION>
  <FUNCTION id="fieldStandardCostMaterialAux" name="SUM" attribute="value" format="euroInform">costPerUnitStd</FUNCTION-->

  <FUNCTION id="fieldRealCostMaterialTotal" name="SUM" format="euroInform">realunitcost</FUNCTION>
  <FUNCTION id="fieldStandardCostMaterialTotal" name="SUM" format="euroInform">standarunitcost</FUNCTION>

  <SECTION id="sectionMaterial"/>
</structure>


<structure name="structureMachine">
  
  <FIELD id="fieldLevelBlanckMachine" attribute="width" replace="xx">levelBlanck</FIELD>
  <FIELD id="fieldLevelNameMachine" attribute="width" replace="jj">levelName</FIELD>
  <FIELD id="fieldNameMachine">name</FIELD>
  <FIELD id="fieldIdMachine" attribute="value">id</FIELD>
  <FIELD id="fieldCostPerUnitMachine" format="euroInform">costPerUnit</FIELD>
  <FIELD id="fieldCostPerUnitStdMachine" format="euroInform">costPerUnitStd</FIELD>

  <FIELD id="fieldLevelId">levelid</FIELD>
  <FUNCTION id="fieldLevelMachine" name="MODULE" arg1="fieldLevelId" arg2="param2" format="integerEdition" attribute="class" replace="1"/>
  <!--FIELD id="fieldLevelNameMachine" attribute="class">className</FIELD>
  <FIELD id="fieldConsumedPerUnitMachine" attribute="class">className</FIELD>
  <FIELD id="fieldCostPerUnitMachine" attribute="class">className</FIELD>
  <FIELD id="fieldConsumedPerUnitStdMachine" attribute="class">className</FIELD>
  <FIELD id="fieldCostPerUnitStdMachine" attribute="class">className</FIELD>
  <FIELD id="fieldRealCostMachine" attribute="class">className</FIELD>
  <FIELD id="fieldStandardCostMachine" attribute="class">className</FIELD-->

  <!--FIELD id="buttonTreeMachinezxy" attribute="class">buttonClass</FIELD>
<FIELD id="buttonTreeMachinezxy" attribute="id" replace="zxy">id</FIELD>
<FIELD id="returnTextMachinezxy" attribute="id" replace="zxy">id</FIELD-->

<!--FUNCTION id="fieldRealCostMachine" name="MULTIPLY" arg1="fieldConsumedPerUnitMachine" arg2="fieldCostPerUnitMachine" format="euroInform"/>
     <FUNCTION id="fieldStandardCostMachine" name="MULTIPLY" arg1="fieldConsumedPerUnitStdMachine" arg2="fieldCostPerUnitStdMachine" format="euroInform"/>
     <FUNCTION id="fieldRealCostMachineAux1" name="SUM">consumedPerUnit</FIELD>
     <FUNCTION id="fieldRealCostMachineAux2" name="SUM">costPerUnit</FIELD>
     <FUNCTION id="fieldRealCostMachineAux3" name="SUM">consumedPerUnitStd</FIELD>
     <FUNCTION id="fieldRealCostMachineAux4" name="SUM">costPerUnitStd</FIELD>

     <FUNCTION id="fieldRealCostMachineTotal" name="MULTIPLY" arg1="fieldRealCostMachineAux1" arg2="fieldRealCostMachineAux2"/>
     <FUNCTION id="fieldStandardCostMachineTotal" name="MULTIPLY" arg1="fieldRealCostMachineAux3" arg2="fieldRealCostMachineAux4"/-->

       <SECTION id="sectionMachine"/>
     </structure>

     <structure name="structureIndirect">
       <FIELD id="fieldLevelBlanckIndirect" attribute="width" replace="xx">levelBlanck</FIELD>
       <FIELD id="fieldLevelNameIndirect" attribute="width" replace="jj">levelName</FIELD>
       <FIELD id="fieldNameIndirect">name</FIELD>
       <FIELD id="fieldIdIndirect" attribute="value">id</FIELD>
       <FIELD id="fieldCostPerUnitIndirect" format="euroInform">costPerUnit</FIELD>
       <FIELD id="fieldCostPerUnitStdIndirect" format="euroInform">costPerUnitStd</FIELD>

  <FIELD id="fieldLevelId">levelid</FIELD>
  <FUNCTION id="fieldLevelIndirect" name="MODULE" arg1="fieldLevelId" arg2="param2" format="integerEdition" attribute="class" replace="1"/>
       <!--FIELD id="fieldLevelNameIndirect" attribute="class">className</FIELD>
       <FIELD id="fieldConsumedPerUnitIndirect" attribute="class">className</FIELD>
       <FIELD id="fieldCostPerUnitIndirect" attribute="class">className</FIELD>
       <FIELD id="fieldConsumedPerUnitStdIndirect" attribute="class">className</FIELD>
       <FIELD id="fieldCostPerUnitStdIndirect" attribute="class">className</FIELD>
       <FIELD id="fieldRealCostIndirect" attribute="class">className</FIELD>
       <FIELD id="fieldStandardCostIndirect" attribute="class">className</FIELD-->

       <!--FIELD id="buttonTreeIndirectjpq" attribute="class">buttonClass</FIELD>
     <FIELD id="buttonTreeIndirectjpq" attribute="id" replace="jpq">id</FIELD>
     <FIELD id="returnTextIndirectjpq" attribute="id" replace="jpq">id</FIELD-->

     <!--FUNCTION id="fieldRealCostIndirect" name="MULTIPLY" arg1="fieldConsumedPerUnitIndirect" arg2="fieldCostPerUnitIndirect" format="euroInform"/>
   <FUNCTION id="fieldStandardCostIndirect" name="MULTIPLY" arg1="fieldConsumedPerUnitStdIndirect" arg2="fieldCostPerUnitStdIndirect" format="euroInform"/>

   <FUNCTION id="fieldRealCostIndirectAux1" name="SUM">consumedPerUnit</FIELD>
   <FUNCTION id="fieldRealCostIndirectAux2" name="SUM">costPerUnit</FIELD>
   <FUNCTION id="fieldRealCostIndirectAux3" name="SUM">consumedPerUnitStd</FIELD>
   <FUNCTION id="fieldRealCostIndirectAux4" name="SUM">costPerUnitStd</FIELD>

   <FUNCTION id="fieldRealCostIndirectTotal" name="MULTIPLY" arg1="fieldRealCostIndirectAux1" arg2="fieldRealCostIndirectAux2"/>
   <FUNCTION id="fieldStandardCostIndirectTotal" name="MULTIPLY" arg1="fieldRealCostIndirectAux3" arg2="fieldRealCostIndirectAux4"/-->

     <SECTION id="sectionIndirect"/>
   </structure>

   <structure name="structureEmployee">
     <FIELD id="fieldLevelBlanckEmployee" attribute="width" replace="xx">levelBlanck</FIELD>
     <FIELD id="fieldLevelNameEmployee" attribute="width" replace="jj">levelName</FIELD>
     <FIELD id="fieldNameEmployee">name</FIELD>
     <FIELD id="fieldIdEmployee" attribute="value">id</FIELD>
     <FIELD id="fieldCostPerUnitEmployee" format="euroInform">costPerUnit</FIELD>
     <FIELD id="fieldCostPerUnitStdEmployee" format="euroInform">costPerUnitStd</FIELD>

  <FIELD id="fieldLevelId">levelid</FIELD>
  <!--FUNCTION id="funcLevelEmployee" name="MODULE" arg1="fieldLevelId" arg2="param2" format="integerEdition" attribute="class" replace="1"/-->
     <!--FIELD id="fieldLevelNameEmployee" attribute="class">className</FIELD>
     <FIELD id="fieldConsumedPerUnitEmployee" attribute="class">className</FIELD>
     <FIELD id="fieldCostPerUnitEmployee" attribute="class">className</FIELD>
     <FIELD id="fieldConsumedPerUnitStdEmployee" attribute="class">className</FIELD>
     <FIELD id="fieldCostPerUnitStdEmployee" attribute="class">className</FIELD>
     <FIELD id="fieldRealCostEmployee" attribute="class">className</FIELD>
     <FIELD id="fieldStandardCostEmployee" attribute="class">className</FIELD-->

     <!--FIELD id="buttonTreeEmployeejhq" attribute="class">buttonClass</FIELD>
   <FIELD id="buttonTreeEmployeejhq" attribute="id" replace="jhq">id</FIELD>
   <FIELD id="returnTextEmployeejhq" attribute="id" replace="jhq">id</FIELD-->

   <!--FUNCTION id="fieldRealCostEmployee" name="MULTIPLY" arg1="fieldConsumedPerUnitEmployee" arg2="fieldCostPerUnitEmployee" format="euroInform"/>
 <FUNCTION id="fieldStandardCostEmployee" name="MULTIPLY" arg1="fieldConsumedPerUnitStdEmployee" arg2="fieldCostPerUnitStdEmployee" format="euroInform"/>

 <FUNCTION id="fieldRealCostEmployeeAux1" name="SUM">consumedPerUnit</FIELD>
 <FUNCTION id="fieldRealCostEmployeeAux2" name="SUM">costPerUnit</FIELD>
 <FUNCTION id="fieldRealCostEmployeeAux3" name="SUM">consumedPerUnitStd</FIELD>
 <FUNCTION id="fieldRealCostEmployeeAux4" name="SUM">costPerUnitStd</FIELD>

 <FUNCTION id="fieldRealCostEmployeeTotal" name="MULTIPLY" arg1="fieldRealCostEmployeeAux1" arg2="fieldRealCostEmployeeAux2"/>
 <FUNCTION id="fieldStandardCostEmployeeTotal" name="MULTIPLY" arg1="fieldRealCostEmployeeAux3" arg2="fieldRealCostEmployeeAux4"/-->

   <SECTION id="sectionEmployee"/>
 </structure>



 <DISCARD id="discard"/>
</REPORT>
